<?php

namespace Database\Factories;

use App\Models\Admin;
use Illuminate\Database\Eloquent\Factories\Factory;

class AdminFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = Admin::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
    	$avatar = [
    		'https://tvax2.sinaimg.cn/crop.0.0.1080.1080.180/005RQvwrly8g3yobwswv4j30u00u075p.jpg',
		    'https://tva3.sinaimg.cn/crop.0.0.996.996.50/005yEjIXjw8fa0z5rp8vij30ro0ro75z.jpg',
		    'https://tvax3.sinaimg.cn/crop.0.0.1328.1328.180/ed12dd40ly8ff61i0pnbuj210w10w778.jpg'
	    ];
        return [
            'name' => $this->faker->name(),
            'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
	        'avatar' => $this->faker->randomElement($avatar),
        ];
    }
}
